package portal.mybatis.dao.mapper;

import java.util.List;

import portal.beans.*;

public interface HostMapper {
	public int updateNodeById(Node node);
	public List<Node> selectByName(String nodeName);
	public List<Node> selectByIp(String ip);
	public int insertNode(Node node);
	public int deleteByNameOrIpOrId(Node node);
	public int deleteByNameAndIpAndId(Node node);
	public int deleteById(Node node);
	public long countAll();
	/***
	 * @category 启动类方法，仅在应用启动时候启用，其他时刻启动应当谨慎，此间前天数据会显示异常
	 * @author 徐文远 
	 * @return 返回执行变更个数
	 * **/
	public int updateNodeToInactive();
	public List<Node> selectAll();
}
